package com.haojin.java;

public class ValueTransferTest2 {
public static void main(String[] args) {
	
	
	Date date = new Date();
	date.m = 10;
	date.n = 20;
	System.out.println("m = "+date.m+" n = "+date.n);
	ValueTransferTest2 swap = new ValueTransferTest2();
	swap.swap(date);
	System.out.println("m = "+date.m+" n = "+date.n); 
	
	
	
}
    public void swap(Date date){
    	int temp = date.m;
    	date.m = date.n;
    	date.n = temp;
    }
  
}

class Date{
	int m;
	int n;
}